{{#if my_entry}}
  <div>
    {{#if my_entry.data.claimant}}
      <p>You have been claimed by {{my_entry.data.claimant_real_name}}</p>
    {{else}}
      <p>You are in the queue at position {{position}} for {{my_entry.type}} ({{my_entry.data.assignment.display_name}})</p> {{/if}}
  </div>
  <div class="form-group">
    <button on-click="@this.remove()" class="btn btn-block btn-danger">Remove</button>
  </div>
{{else}}
  <form class="form-horizontal" on-submit="@this.askForHelp()">
    <div class="form-group">
      <label for="queue_location" class="col-sm-3 control-label">Table</label>
      <div class="col-sm-9">
      <input
          type="text"
          class="form-control"
          id="queue_location"
          placeholder="e.g. 6A"
          value="{{location}}"
          autocomplete="off"
      >
      </div>
    </div>
    <div class="form-group">
      <label for="queue_assignment" class="col-sm-3 control-label">Assignment</label>
      <div class="col-sm-9">
      <input
          type="text"
          class="form-control"
          id="queue_assignment"
          placeholder="e.g. Check Yourself 2"
          value="{{name}}"
          autocomplete="off"
      >
      </div>
    </div>
    <button
        type="submit"
        class="btn btn-block btn-primary"
        {{^(location && name)}}disabled{{/}}
    >Ask for Help</button>
  </form>
{{/if}}
